<template>
  <div class="dialog-father"
       @click.self="clickModal">
    <slot></slot>
  </div>
</template>


<script>
export default {
  props: {
  },
  data () {
    return {}
  },
  methods: {
    clickModal () {
      this.$emit('clickModal')
    }
  }
}
</script>

<style lang="stylus" scoped>
.dialog-father {
  position: fixed;
  top: 0;
  z-index: 1000;
  bottom: 0;
  right: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
